﻿@using WebEntities;
@using WebsiteUI.Extensions;
@using Tools.com.Pager;
@model PagedList<WI_Jobs>

@{

    ViewBag.Title = "英才招聘_城市垃圾处理网";
    ViewBag.ClassHead = "head_bg6";
}
<div class="listMain">
    <div class="main_l">
        @Html.Action("CircleMenu", "PublicPartialView", new { miId = (int)ViewBag.MenuItemID })
        <div class="contentBox">
            <div class="searchArea">
                @using (Html.BeginForm("searchjobs", "list"))
                {
                    <div class="tit">
                        查找招聘信息</div>
                    @Html.TextBox("search", null, new { maxlength = "20", placeholder = "请输入搜索内容", Class = "txtInp" })
                    <select name="stype">
                        <option value="pos">按工作职位检索</option>
                        <option value="com">按企业单位检索</option>
                    </select>
                    <input type="submit" value="" class="btnSearch" />
                }
            </div>
        </div>
        @Html.Action("Contact", "PublicPartialView")
    </div>
    <div class="main_r">
        @Html.Action("PageCurrentPath", "PublicPartialView", new { miId = (int)ViewBag.MenuItemID })
        <div class="contentBox">
            <div class="tab">
                <ul>
                    <li class="current">英才招聘</li>
                </ul>
            </div>
            <div class="tab-content">
                <table border="1" cellpadding="0" cellspacing="0" width="650px" class="jobTable">
                    <tr>
                        <th width="200px">
                            职位名称
                        </th>
                        <th width="185px">
                            公司名称
                        </th>
                        <th width="100px">
                            工作地点
                        </th>
                        <th width="60px">
                            招聘人数
                        </th>
                        <th width="70px">
                            发布日期
                        </th>
                        <th width="35px">
                            &nbsp;
                        </th>
                    </tr>
                    @foreach (var job in Model)
                    {
                        <tr>
                            <td>
                                <a href="/detail/job/@job.JobID" class="linkColor" target="_blank">@job.JobName</a>
                            </td>
                            <td>@job.CompanyName</td>
                            <td>@job.JobAddress</td>
                            <td>@job.JobPepleNum</td>
                            <td>@((job.PubTime ?? job.CreateTime).ToString("yyyy-MM-dd"))</td>
                            <td><a href="/detail/job/@job.JobID" class="linkColor" target="_blank">进入</a></td>
                        </tr>
                    }
                </table>
                <div class="cls"></div>
                @Html.Pager(Model, new PagerOptions
                {
                    PageIndexParameterName = "page",
                    CssClass = "mvc-pager",
                    CurrentPagerItemWrapperFormatString = "<a  href='javascript:void(0)' class=\"mvc-paged\">{0}</a>",
                    HorizontalAlign = "center"
                })
            </div>
        </div>
    </div>
</div>
@section Scripts {
    <script type="text/javascript">
        $(function () {
            $(".jobTable tr:even").addClass("even"); //奇偶变色，添加样式 
        });

    </script>
}
